package com.gaohe.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.gaohe.common.Result;
import com.gaohe.mapper.TagMapper;
import com.gaohe.pojo.Tag;
import com.gaohe.service.TagService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class TagServiceImpl extends ServiceImpl<TagMapper, Tag> implements TagService {
    @Autowired
    private TagMapper tagMapper;
    @Override
    public Result listTagType() {
        List<String> typeList = tagMapper.listTagType();
        return Result.success(typeList);
    }
}
